#include "CountDevice.h"
#include "Signal.h"
#include "SignalInput.h"
#include "SignalDisplay.h"

int main()
{
	CountDevice dev1(0);
	CountDevice dev2(100);

	SignalInput si1(&dev1);
	SignalInput si2(&dev2);
	Signal s1(si1);
	Signal s2(si2);

	dev1.open();
	dev2.open();

	SignalDisplay d1(s1.getHistory());
	SignalDisplay d2(s2.getHistory());
	s1.start();
	s2.start();
	d1.start();
	d2.start();

	while(1);

	return 1;
}
